import { beforeSaleProjectList } from "@/service/Api";

export const project = {
  ajax: {
    handler: beforeSaleProjectList,
    body: {
      isPreSale: "0",
      plateId: null,
      projectKeyWord: null,
    },
  },
  column: [
    {
      prop: "id",
      label: "ID",
    },
    {
      prop: "name",
      label: "项目名称",
    },
    {
      prop: "plateName",
      label: "所属板块",
    },
    {
      prop: "intention",
      label: "意向",
      sortable: "custom",
    },
    {
      prop: "saleStatus",
      label: "销售状态",
      sortable: "custom",
    },
    {
      prop: "messageSource",
      label: "商机来源",
    },
    {
      prop: "createTime",
      label: "项目创建时间",
      sortable: "custom",
    },
    {
      prop: "saleRemark",
      label: "备注",
    },
  ],
  width:500,
  handles: [
    {
      name: "编辑",
      type: "primary",
      size: "small",
      handleClick: "tableEdit",
    },
    {
      name: "成员管理",
      type: "info",
      size: "small",
      handleClick: "tabStu",
    },
    {
      name: "查看工时",
      type: "warning",
      size: "small",
      handleClick: "tableHours",
    },
    {
      name: "跟踪记录",
      type: "success",
      size: "small",
      handleClick: "tableRecord",
    },
    {
      name: "转为正式项目",
      type: "warning",
      size: "small",
      handleClick: "tableBecome",
    },
    {
      name: "查看日报",
      size: "small",
      handleClick: "handleDaily",
      type: "info",
    },
  ],
};

export const minutes = {
  ajax: {
    handler: beforeSaleProjectList,
    body: {
      isPreSale: "1",
      plateId: null,
      projectKeyWord: null,
    },
  },
  column: [
    {
      prop: "id",
      label: "ID",
      sortable:false
    },
    {
      prop: "name",
      label: "项目名称",
    },
    {
      prop: "plateName",
      label: "所属板块",
    },
    {
      prop: "intention",
      label: "意向",
    },
    {
      prop: "messageSource",
      label: "商机来源",
    },
    {
      prop: "createTime",
      label: "项目创建时间",
    },
    {
      prop: "devTime",
      label: "转正日期",
    },
    {
      prop: "saleRemark",
      label: "备注",
    },
  ],
  width:200,
  handles: [
    {
      name: "查看跟踪记录",
      type: "primary",
      size: "small",
      handleClick: "tableRecord",
    },
  ],
};
